Readme file for "Protest and Digital Adaptation"

To replicate data, we provide two main files.

1) The R file "data.R" replicates the data generating process. It combines all data sources (Tor Metrics, MMAD, VDEM, EMDAT, SCAD) and merges data to one dataset stored in a zipfile, called "df.csv.gz".
2) The R markdown file "analysis.Rmd" uses the generated dataset ("df.csv.gz") to replicate the main analyses for all dependent variables (Tor usage, relay usage and bridge usage), the robustness checks and placebo tests. It also contains code for visualizations.
3) Because the data generating process for the placebo test on timing of anti-regime protests (Figure A4) is too time-consuming, we provide replication code in a separate file, "simulation-placebo.Rmd" where we generate the simulated estimates. The estimates “results_high.rda” and “results_high2.rda” can then be used for the replication of Figure A4 in the “analysis.Rmd” file.